package com.vmj.heap;

import com.vmj.classfile.entity.constantinfo.ConstantClassInfo;

/**
 * Created by yangshoujun on 2017/8/26 下午2:18.
 */
public class ClassRef extends SymRef {

    public static ClassRef parseClassRef(RuntimeConstantPool runtimeConstantPool, ConstantClassInfo classInfo) {

        ClassRef ref = new ClassRef();
        ref.setRuntimeConstantPool(runtimeConstantPool);
        ref.setClassName(classInfo.getName());
        return ref;
    }

    @Override
    public String toString() {
        return getClass().toString();
    }
}
